/**
 * 用于修复 Sass 编译器中文路径问题的 Webpack 配置拦截器
 */
const path = require('path');

module.exports = {
  module: {
    rules: [
      {
        test: /\.scss$/,
        use: [
          {
            loader: 'sass-loader',
            options: {
              sassOptions: {
                includePaths: [
                  path.resolve(__dirname, 'node_modules'),
                  path.resolve(__dirname, 'tempui'),
                ]
              },
              additionalData: '@import "../tempui/index.scss";',
            }
          }
        ]
      }
    ]
  }
}; 